home *** CD-ROM | disk | FTP | other *** search
- class BG extends smashing.Renderable
- {
- var halfWidth;
- var x;
- var z;
- var y;
- var ack = "ack";
- function BG()
- {
- super();
- this.halfWidth = this._width / 2;
- this.x = 0;
- this.z = 0;
- this.y = this._y;
- }
- function render()
- {
- var _loc2_ = smashing.Viewport.getPos(this);
- if(_loc2_.y <= smashing.Viewport.centerY)
- {
- this._visible = true;
- this._x = _loc2_.x * _loc2_.scale % this.halfWidth;
- this._y = _loc2_.y * _loc2_.scale + smashing.Viewport.centerY;
- }
- else
- {
- this._visible = false;
- }
- }
- }
-